package cn.xuchunh.campusbbs.ui.fragments;

import android.net.Uri;

import java.util.ArrayList;
import java.util.List;

import cn.xuchunh.campusbbs.R;
import cn.xuchunh.campusbbs.adapter.SimpleIndicatorAdapter;
import cn.xuchunh.campusbbs.base.BaseRecyclerViewAdapter;
import cn.xuchunh.campusbbs.bean.Indicator;
import cn.xuchunh.campusbbs.viewholder.SimpleIconViewHolder;

/**
 * Created by XuChunH on 2015/10/18.
 */
public class MessagesFragment extends SimpleIndicatorListFragment<SimpleIconViewHolder, Indicator>{

    @Override
    protected void loadDataFromCache() {
        List<Indicator> indicatorList = new ArrayList<>();
        indicatorList.add(new Indicator("提到我的", Uri.parse("res://" + getActivity().getPackageName() + "/" + R.drawable.mc_forum_card_news_button1)));
        indicatorList.add(new Indicator("评论", Uri.parse("res://" + getActivity().getPackageName() + "/" + R.drawable.mc_forum_card_news_button2)));
        indicatorList.add(new Indicator("好友", Uri.parse("res://" + getActivity().getPackageName() + "/" + R.drawable.mc_forum_card_news_button3)));
        loadDataFinished(true, indicatorList);
    }

    @Override
    public String getCacheKey() {
        return null;
    }
}
